<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>8.控制弹性元素溢出换⾏处理</title>
  <style>
    * {
      padding: 0;
      margin: 0;
    }

    body {
      padding-left: 50px;
      padding-top: 15px;
    }

    article {
      border: solid 5px silver;
      width: 280px;
      height: 200px;
      display: flex;
      flex-direction: column;
      flex-wrap: wrap-reverse;
    }

    article * {
      width: 100px;
      height: 100px;
      background: blueviolet;
      background-clip: content-box;
      padding: 10px;
      font-size: 35px;
      box-sizing: border-box;
      color: white;
    }
  </style>
</head>

<body>
  <article>
    <div>1</div>
    <div>2</div>
    <div>3</div>
  </article>
</body>

</html>